package cn.game.tanke.role;

import cn.game.tanke.util.TankMap;

public class Boom extends Role {
    public Boom(int x, int y) {
        super(TankMap.boom, 192, 192, 0, 0, x, y);
        Runnable runnable = ()-> {
            annimal();
        };
        new Thread(runnable).start();
    }


    @Override
    void move() {

    }

    @Override
    void annimal() {
        int step=getStep();
        for (int i = 0; i < 10; i++){
            setStep(++step);
        }
    }
}
